package cn.zzuisa.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author frank
 * @since 2019-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("zzu_invitation")
public class Invitation extends Model<Invitation> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 那个用户
     */
    private Long memberId;

    /**
     * 发表日期
     */
    private LocalDateTime publishTime;

    /**
     * 访问次数
     */
    private Long assessTimes;

    /**
     * 那个模块
     */
    private Integer moduleId;

    /**
     * 管理员是否置顶
     */
    private Integer isTop;

    /**
     * 管理员是否热帖
     */
    private Integer isHot;

    /**
     * 帖子主题
     */
    private String topic;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
